function SignPatternsMat = sequenceGeneration( SignPatterns,m,BaseShift )
%SEQUENCEGENERATION Summary of this function goes here
%   Detailed explanation goes here


SignPatternsMat=SignPatterns;

if length(BaseShift ) == 1           %a vector of single delays is given
    for r_ind = 2:m                             % Update the nonrandom rows with appropriate shifts
            SignPatternsMat(r_ind,:) = circshift(SignPatternsMat(r_ind-1,:) , [ 0 BaseShift] );
    end    
else
    for r_ind =2:m                             % Update the nonrandom rows with appropriate shifts
        SignPatternsMat(r_ind,:) = circshift(SignPatternsMat(1,:) , [ 0 BaseShift(r_ind-1) ] );
    end
end

end

